#include <iostream>
#include <string>
#include <algorithm>
using std::cin;
using std::cout;
using std::string;
string farmer02;
int main()
{
    // char* str[SIZE];
    cin >> farmer02;
    std::reverse(farmer02.begin(), farmer02.end());
    cout << farmer02;
    return 0;
}